//
// Created by YxMin on 2024/7/4.
//
#include <font.h>
FontStyle DefaultFont = {36,18,BLACK,_T("仿宋")};
void SetFont(FontStyle *font)
{
    settextcolor(font->color);
    settextstyle(font->height,font->width,font->family);
}

void RecoverFont()
{
    SetFont(&DefaultFont);
}
void SetFontSize(int height,int width) //width默认为0
{
    settextstyle(height,width,DefaultFont.family);
}
const FontStyle* GetDefaultFont()
{
    return &DefaultFont;
}